package com.wzy.projectManagement.business
{
	import com.adobe.cairngorm.business.ServiceLocator;
	import com.adobe.serialization.json.JSON;
	
	import mx.rpc.IResponder;
	import mx.rpc.remoting.RemoteObject;
	
	public class ProjectDeledate
	{
		public var responder     : IResponder;
		public var remoteService : RemoteObject;
		
		private var result : Object;
		public function ProjectDeledate(_responder : IResponder)
		{
			this.responder = _responder;
			remoteService = ServiceLocator.getInstance().getRemoteObject("projectDataService");
		}
		
		public function findAllProject() : void  {
			result = remoteService.findAllProject();
			result.addResponder(responder);
		}
		public function saveProject(vo : Object) : void {
			result = remoteService.saveProject(JSON.encode(vo));
			result.addResponder(responder);
		}
	}
}